/*
 * Freshtel FT-102 VoIP USB Phone driver
 *
 * Copyright (c) 2007 Sebastien Bourdeauducq <sebastien.bourdeauducq@gmail.com>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#ifndef _FRESHTEL_IOCTL_H_
#define _FRESHTEL_IOCTL_H_

/* arg = pointer to struct freshtel_screensize */
#define FRESHTEL_SCREENSIZE		0

struct freshtel_screensize {
	unsigned int w;
	unsigned int h;
};

/* no argument */
#define FRESHTEL_IOCUPDATE 		1

/* HELP: for some reason, 2 is filtered...
 * Can someone explain that?
 */

/* arg = number of rings */
#define FRESHTEL_IOCRING 		3

/* arg = pointer to struct freshtel_sringtone */
#define FRESHTEL_IOCSRINGTONE 		4

/* arg = backlight enabled */
#define FRESHTEL_IOCSBACKLIGHT 		5

struct freshtel_sringtone {
	ssize_t size;
	/* Format:
		- 1 byte = ringtone volume
		- then a series of (-freq,duration) notes, in le16
		- terminated by (0,0)
	*/
	unsigned char data[128];
};

#endif /* _FRESHTEL_IOCTL_H_ */
